﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CodeFactory.IDAL
{
    public class DALException : Exception
    {
        private string errorSql;

        public string ErrorSql
        {
            get { return this.errorSql; }
        }

        public DALException()
            :base()
        {
            errorSql=string.Empty;
        }

        public DALException(string message)
            : base(message)
        {
            errorSql = string.Empty;
        }

        public DALException(string message, string errSql)
            : base(message)
        {
            errorSql = errSql;
        }

        public DALException(string message, Exception innerException)
            : base(message, innerException)
        {
            errorSql = string.Empty;
        }

        public DALException(string message, string errSql, Exception innerException)
            : base(message, innerException)
        {
            errorSql = errSql;
        }
    }
}
